package acm.pta4;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class T7 {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(in.readLine());
        char[] chars = in.readLine().toCharArray();
        char[][] res = new char[n][(int) Math.ceil((1.0 * chars.length / n))];
        int index=0;
        for (int j = res[0].length-1;j>=0;j--) {
            for (int i = 0; i < res.length; i++) {
                if (index>=chars.length){
                    break;
                }
                res[i][j]=chars[index++];
            }
            if (index>=chars.length){
                break;
            }
        }
        for (char[] re : res) {
            for (char c : re) {
                if (c=='\0'){
                    System.out.print(' ');
                }else {
                    System.out.print(c);
                }
            }
            System.out.println();
        }
    }
}
